<script lang="ts" setup>
// import { defineOptions, defineProps } from 'vue'
defineOptions({
  name: 'form-label'
})
const props = defineProps({
  label: {
    type: String,
    default: ''
  },
})
</script>

<template>
  <div class="form-label">
    <div class="label">
        {{ props.label }}
    </div>
    <div class="form-item">
        <slot></slot>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.form-label {
    display: flex;
    align-items: center;
    gap:15px;
    color: var(--font-color);
}
</style>
